package com.bole.feign;

import com.bole.dto.user.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface UserFeign {
    @GetMapping("/user/getUserInfo")
    List<UserDto> getUserInfo();

    @PostMapping("/user/toUpdate")
    UserDto toUpdate(@RequestParam("id") Long id);

    @PostMapping("/user/updateUserInfo")
    void updateUserInfo(@RequestBody UserDto userDto);


}
